﻿using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Media;

namespace SeriesManager.View
{
    public sealed partial class SeriesView : NavigationView
    {
        public SeriesView()
        {
            this.InitializeComponent();
        }

        void MetaData_Loaded(object sender, RoutedEventArgs e)
        {
            this.gridView.Padding = new Thickness(116, this.metaData.ActualHeight + 160, 40, 30);
        }

        protected override void UpdateVisualState(Windows.Foundation.Size windowSize)
        {
            if (windowSize.Width < 900)
            {
                VisualStateManager.GoToState(this, "Landscape500", true);
            }
            else if (windowSize.Height >= 900)
            {
                VisualStateManager.GoToState(this, "Landscape900", true);
            }
            else
            {
                VisualStateManager.GoToState(this, "Landscape768", true);
            }
        }
    }
}
